home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / Common / SoundObject.as < prev   
Encoding:
Text File  |  2011-10-17  |  1.0 KB  |  52 lines

  1. package Common
  2. {
  3.    import flash.media.Sound;
  4.    
  5.    public class SoundObject
  6.    {
  7.       
  8.       public static const C_RIGHT:* = 2;
  9.       
  10.       public static const C_BG:* = 0;
  11.       
  12.       public static const C_LEFT:* = 3;
  13.       
  14.       public static const C_SFX:* = 1;
  15.       
  16.       public static const C_BOTH:* = 4;
  17.        
  18.       
  19.       private var name:String;
  20.       
  21.       private var position:uint;
  22.       
  23.       private var sound:Sound;
  24.       
  25.       private var type:uint;
  26.       
  27.       public function SoundObject(param1:String, param2:Sound, param3:uint, param4:uint = 4)
  28.       {
  29.          super();
  30.          this.name = param1;
  31.          this.sound = param2;
  32.          this.type = param3;
  33.          this.position = param4;
  34.       }
  35.       
  36.       public function get Position() : uint
  37.       {
  38.          return position;
  39.       }
  40.       
  41.       public function get SoundData() : Sound
  42.       {
  43.          return sound;
  44.       }
  45.       
  46.       public function get Type() : uint
  47.       {
  48.          return type;
  49.       }
  50.    }
  51. }
  52.